import Vue from "vue";
import App from "./App.vue";
import router from '@/router'
import TypeNav from '@/components/TypeNav'
import Pagination from '@/components/Pagination'
import store from "./store";
import '@/mock/mockServe'
import 'swiper/css/swiper.css'
import * as api from '@/api'
import { Button, MessageBox } from 'element-ui'

Vue.config.productionTip = false;
Vue.component(TypeNav.name, TypeNav)
Vue.component(Pagination.name, Pagination)
Vue.component(Button.name, Button);

new Vue({
  render: (h) => h(App),
  router,
  store,
  beforeCreate() {
    Vue.prototype.$bus = this
    Vue.prototype.$api = api,
      Vue.prototype.$msgbox = MessageBox;
    Vue.prototype.$alert = MessageBox.alert;
  },
}).$mount("#app");
